﻿<!DOCTYPE html>
<html>
<head>
    <title>网易武魂攻略大全</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <link rel="stylesheet" type="text/css" href="css/icons.css"/>
    <link rel="stylesheet" type="text/css" href="css/af.ui.css"/>
    <link rel="stylesheet" type="text/css" href="css/bb.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>

    <script type="text/javascript" charset="utf-8" src="js/appframework.js"></script>
    <script type="text/javascript" charset="utf-8" src="js/appframework.ui.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>

    <script type="text/javascript">
        $.ui.autoLaunch = false;
        $.ui.openLinksNewTab = false;
        $(document).ready(function () {
            $.ui.launch();
            setTimeout(function(){
                initMain();
            },20);
        });

        document.addEventListener("deviceready", onMyDeviceReady, false);
        // PhoneGap is loaded and it is now safe to make calls PhoneGap methods
        function onMyDeviceReady() {
            // 注册回退按钮事件监听器
            document.addEventListener("backbutton", onBackKeyDown, false);
        }
        // 处理后退按钮操作
        function onBackKeyDown() {
            var arr = $.ui.history;
            if(arr == undefined || arr.length == 0)
            {
                navigator.app.exitApp();
            }
            $.ui.goBack();
        }
        /* This code is used to run as soon as appMobi activates */
        var onDeviceReady = function () {
            AppMobi.device.setRotateOrientation("portrait");
            AppMobi.device.setAutoRotate(false);
            webRoot = AppMobi.webRoot + "";
            //hide splash screen
            AppMobi.device.hideSplashScreen();
            $.ui.blockPageScroll(); //block the page from scrolling at the header/footer
        };
        document.addEventListener("appMobi.device.ready", onDeviceReady, false);
    </script>
    <script src="js/database.js"></script>
    <script src="js/main.js"></script>

    <style>
        .samplecode {
            background: #ccc;
            color: #000;
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 10px;
            margin-top: 10px;
        }

        .grid > div {
            border: 1px dashed black;
        }
    </style>
</head>
<body>
<div id="afui" class="bb">
    <!-- this is the splashscreen you see. -->
    <!--<div id="splashscreen" class='ui-loader heavy'>
        CCTV 热点选股
        <br>
        <br> <span class='ui-icon ui-icon-loading spin'></span>

        <h1>Starting app</h1>
    </div>-->
    <div id="header">
        <a id='menubadge' onclick='af.ui.toggleSideMenu()' class='menuButton'></a>
    </div>
    <div id="content" style="background-image: url('img/bg.jpg');background-repeat: repeat">
        <div  id="main" title="网易武魂攻略大全" class="panel" style="padding: 0px;border-top: 0px;font-size: 18px;" selected="true" data-header="mainheader" data-footer="none">
              <div id="mainList"><p></p></div>
        </div>

        <div  id="detail" class="panel" style="padding: 0px;border-top: 0px;" data-header="detailheader" data-footer="none">
            <div id="title" style="font-size: 22px;line-height:25px;padding-top: 25px;padding-bottom: 15px;text-align: center;padding-left: 15px;padding-right: 15px;"><p></p></div>
            <div id="detailContent"  style="padding-left: 15px;padding-right: 15px;font-size: 20px;line-height: 20px;padding-bottom: 15px;"><p></p></div>
        </div>
        <div  id="childDiv" class="panel" style="padding: 0px;border-top: 0px;" data-header="childheader" data-footer="none">
            <div id="childList"><p></p></div>
        </div>
    </div>
    <header id="mainheader" style="text-align: center;">
        <h3 style="padding-top: 20px;">网易武魂攻略大全</h3>
    </header>
    <header id="childheader" style="text-align: center;">
        <a id="backButton" style="top: 8px;"></a>
        <h3 style="padding-top: 20px;">网易武魂攻略大全</h3>
    </header>
    <header id="detailheader" style="text-align: center;">
        <a id="backButton" style="top: 8px;"></a>
        <h3 style="padding-top: 20px;">攻略详情</h3>
    </header>
</div>
</body>
</html>